package com.ruoyi.healthCard.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 健康证对象 t_biz_health_certificate
 * 
 * @author ruoyi
 * @date 2025-06-25
 */
public class TBizHealthCertificate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 健康证 ID */
    private Long certId;

    /** 体检人员 ID */
    @Excel(name = "体检人员 ID")
    private Long personId;

    /** 证书类型 */
    @Excel(name = "证书类型")
    private String certType;

    /** 有效期 */
    @Excel(name = "有效期")
    private Long validPeriod;

    /** 发证日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发证日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issueDate;

    /** 过期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationDate;

    /** 状态 */
    @Excel(name = "状态")
    private Integer certStatus;

    public void setCertId(Long certId) 
    {
        this.certId = certId;
    }

    public Long getCertId() 
    {
        return certId;
    }

    public void setPersonId(Long personId) 
    {
        this.personId = personId;
    }

    public Long getPersonId() 
    {
        return personId;
    }

    public void setCertType(String certType) 
    {
        this.certType = certType;
    }

    public String getCertType() 
    {
        return certType;
    }

    public void setValidPeriod(Long validPeriod) 
    {
        this.validPeriod = validPeriod;
    }

    public Long getValidPeriod() 
    {
        return validPeriod;
    }

    public void setIssueDate(Date issueDate) 
    {
        this.issueDate = issueDate;
    }

    public Date getIssueDate() 
    {
        return issueDate;
    }

    public void setExpirationDate(Date expirationDate) 
    {
        this.expirationDate = expirationDate;
    }

    public Date getExpirationDate() 
    {
        return expirationDate;
    }

    public void setCertStatus(Integer certStatus) 
    {
        this.certStatus = certStatus;
    }

    public Integer getCertStatus() 
    {
        return certStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("certId", getCertId())
            .append("personId", getPersonId())
            .append("certType", getCertType())
            .append("validPeriod", getValidPeriod())
            .append("issueDate", getIssueDate())
            .append("expirationDate", getExpirationDate())
            .append("certStatus", getCertStatus())
            .toString();
    }
}
